﻿@model List<GameStepAzure.Models.Producto>
@foreach (var item in Model)
{
    <div class="prod_box">
        <div class="top_prod_box">
        </div>
        <div class="center_prod_box">
            <div class="product_title">
                @Html.ActionLink(item.Nombre, "Index", "Details", new { Id = item.Id, Consola = item.Consola, Tipo = item.Tipo }, null)
            </div>
            <div class="product_img">
                <a href="@Url.Action("Index", "Details", new { Id = item.Id, Consola = item.Consola, Tipo = item.Tipo })">
                    <img src="@item.PathImagen" alt="" title=""/>
                </a>
            </div>
            <div class="prod_price">
                @if (item.PrecioDescuento > 0)
                {
                    <span class="reduce">$@item.Precio</span> <span class="price">$@item.PrecioDescuento</span>
                }
                else
                { 
                    <span class="price">$@item.Precio</span>
                }
            </div>
        </div>
        <div class="bottom_prod_box">
        </div>
        <div class="prod_details_tab">
            <a href="@Url.Action("AgregarProducto", "Carrito", new { itemId = item.Id, returnUrl = Request.RawUrl, cantidad = 1 })" title="header=[Agregar a Carrito] body=[&nbsp;] fade=[on]">
                <img src="/Images/GameStore/cart.gif" alt="" title="" class="left_bt" /></a>
            <a href="@Url.Action("Index", "Details", new { Id = item.Id, Consola = item.Consola, Tipo = item.Tipo })" class="prod_details">Detalles</a>
        </div>
    </div>        
}